/**
 * Created by fkjslee on 2018/1/1.
 */

window.onload = autoRun();

 var url = "http://118.24.11.68:8080";
// var url = "http://172.24.8.233:8080";

function autoRun() {
    var patientID = document.getElementById("patientID");
    patientID.value = GetQueryString("patientID");
}

/**
 * @return {null}
 */
function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r !== null)return unescape(r[2]);
    return null;
}

function btnPrint() {
    var temp = "打印" + GetQueryString("patientID") + "的检查, 呼叫下一个";
    alert(temp);
    window.location.href = url + "/doctorSystem/doctorSystem.html" +
        "?account=" + GetQueryString("account") +
        "&patientID=" + GetQueryString("patientID");

}
